﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
using System.Text;
using System.Web.Script.Services;
using KishOnlineCommone;
using KishOnlineDomain.Common;
[ServiceContract(Namespace = "")]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]

public class Message
{
    [OperationContract]
    [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
    public MessageDTO Get(MessageDTO message)
    {
        return MessageReader.Get(message.Type, message.Code);
    }
    [OperationContract]
    [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
    public List<MessageDTO> List(List<MessageDTO> messages)
    {
        return MessageReader.List(messages);
    }
}

